﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using VehicleMaintenance.Framework;

namespace VehicleMaintenance.Systems
{
	public partial class SystemForm : BaseForm
	{
		public SystemForm()
		{
			InitializeComponent();
		}

		private void btnBackup_Click(object sender, EventArgs e)
		{
			Comm.DataBaseComm.Backup();
		}

		private void btnRestore_Click(object sender, EventArgs e)
		{
			Comm.DataBaseComm.Restore("");
		}

		private void btnChangePwd_Click(object sender, EventArgs e)
		{
			ChangePwdForm form = new ChangePwdForm();
			form.ShowInTaskbar = false;
			form.ShowDialog(this);
		}

		private void btnUserManage_Click(object sender, EventArgs e)
		{
			UsersForm form = new UsersForm(false);
			form.ShowInTaskbar = false;
			form.ShowDialog(this);
		}
	}
}
